<?php
	header("Content-Type: text/html;charset=utf-8");
	include("function/_nosql.php"); 
	include("function/function.php");
	include("_include.user.judge.php");

	$action = chkstr(trim($_REQUEST['action']));
	if($action == 'logout'){
		setcookie("username","",time());
   		setcookie("password","",time());
		$_SESSION['kboy_userid'] = "";
		$_SESSION['kboy_user'] = "";
		echo re("index.php");
	}else{
		echo erro("参数错误");
	}
?>